package com.google.samples.apps.paging.data.bean

import com.chad.library.adapter.base.entity.MultiItemEntity


/**
 * Created by Administrator on 2020/12/3 0003.
 * Describe:
 */
data class ClassBean(
    var bz: String = "",
    var class_id: String = "",
    var class_name: String = "",
    var class_level: Int = 0,
    var class_logo: String = "",
    var class_recommend: Int = 0,
    var class_sort: Int = 0,
    var class_proportion: Int = 0,
    var sort_id: String = "",
    var sort_name: String = "",
    var gxsj: String = "",
    var lrsj: String = "",
    var lrzh: String = "",
    var twoclass: List<ClassBean> = arrayListOf(),
    var subClassList: List<ClassBean> = arrayListOf(),
    var parent_class_id: String = "",
    var is_open: String = "", // 1已开通 2审核中 0未开通
    var class_num: String = "",
    var up_class_id: String? = null,
    var isSelect: Boolean = false,
    var zt: Int = 0,
    override var itemType: Int = 0
) : MultiItemEntity {

    override fun equals(other: Any?): Boolean {
        if (other == null) {
            return true
        }
        return class_id == (other as ClassBean).class_id
    }

    companion object {
        val TYPE_TITLE = 1
        val TYPE_TEXT = 0
        val TYPE_BANNER = 2
    }
}